PT_SRC_ROOT_FOLDER='https://z3.ax1x.com';
PT_SRC_URLS_INDEX={
    '00': '2021/07/06/Ro30Wd',
    '01': '2021/07/06/Ro3rQI',
    '02': '2021/07/06/Ro3wJH',
    '03': '2021/07/06/Ro3DSA'
};
var hex_ind='0123456789abcdef';
function dec_ind(hex){
    return hex>='0'&&hex<='9'?hex:(hex=='a'?'10':(hex=='b'?'11':(hex=='c'?'12':(hex=='d'?'13':(hex=='e'?'14':(hex=='f'?'15':'error: `'+hex+'` is not a hex'))))));
}
pixels_text_tags=document.getElementsByTagName('pt');
for(var k=0;k<pixels_text_tags.length;k++){
    pixels_text_tags[k].style.cssText="display:inline-block;height:56px;box-sizing:border-box;margin:0;padding:0;";
    var str=pixels_text_tags[k].getAttribute('t');
    var ret='';
    for(var i=0;i<str.length;i++){
        ret+='<span style="display:inline-block;position:relative;height:56px;width:40px;box-sizing:border-box;overflow:hidden;margin:4px;"><img src="'
            +PT_SRC_ROOT_FOLDER+'/'+PT_SRC_URLS_INDEX[(parseInt(parseInt(parseInt(str.charCodeAt(i)/16)/16)/16)%16).toString(16)
            +(parseInt(parseInt(str.charCodeAt(i)/16)/16)%16)].toString(16)+'.png" style="position:absolute;top:'
            +parseInt(str.charCodeAt(i)/16)%16*(-56)+'px;left:'+str.charCodeAt(i)%16*(-40)+'px;"></span>';
    }
    pixels_text_tags[k].innerHTML=ret;
}
pixels_text_tr_tags=document.getElementsByTagName('pttr');
for(var k=0;k<pixels_text_tr_tags.length;k++){
    pixels_text_tr_tags[k].style.cssText="display:inline-block;height:56px;width:40px;box-sizing:border-box;margin:0;padding:0;";
    var str=pixels_text_tr_tags[k].getAttribute('u');
    pixels_text_tr_tags[k].innerHTML='<span style="display:inline-block;position:relative;height:56px;width:40px;box-sizing:border-box;overflow:hidden;margin:4px;"><img src="'
            +PT_SRC_ROOT_FOLDER+'/'+PT_SRC_URLS_INDEX[str[0]+str[1]]+'.png" style="position:absolute;top:'
            +parseInt(dec_ind(str[2]))*(-56)+'px;left:'+parseInt(dec_ind(str[3]))*(-40)+'px;"></span>';
}
function $load(element,value){
    element.style.cssText="display:inline-block;height:56px;box-sizing:border-box;margin:0;padding:0;";
    var str=value;
    var ret='';
    for(var i=0;i<str.length;i++){
        ret+='<span style="display:inline-block;position:relative;height:56px;width:40px;box-sizing:border-box;overflow:hidden;margin:4px;"><img src="'
            +PT_SRC_ROOT_FOLDER+'/'+PT_SRC_URLS_INDEX[(parseInt(parseInt(parseInt(str.charCodeAt(i)/16)/16)/16)%16).toString(16)
            +(parseInt(parseInt(str.charCodeAt(i)/16)/16)%16).toString(16)]+'.png" style="position:absolute;top:'
            +parseInt(str.charCodeAt(i)/16)%16*(-56)+'px;left:'+str.charCodeAt(i)%16*(-40)+'px;"></span>';
    }
    element.innerHTML=ret;
}